package com.herench.bunch.exam.handler;


import com.herench.bunch.commons.annotation.Handler;

import com.herench.bunch.commons.support.AbstractMessageHandler;
import com.herench.bunch.exam.agent.ExamOperationAgent;
import com.herench.bunch.exam.convert.ExamApplicationChargeConvert;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Map;


/**
 * @author luoxiaoming on 18-9-17 下午5:11
 * @email luoxiaoming@herench.com
 */

@Handler(code = "300050" ,name = "检查申请单计费" ,messageConvertClass = ExamApplicationChargeConvert.class)
public class ExamApplicationChargeHandler extends AbstractMessageHandler {

    @Autowired
    private ExamOperationAgent examOperationAgent;

    @Override
    protected Object proxyInvoke(Object inMessage) throws Exception {
        Map<String,Object> params = (Map<String, Object>) inMessage;
        Map<String,Object> res = examOperationAgent.bill(params);
        return res;
    }
}
